﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace Medicalsystem.Docare.Common.Configuration
{
    public class InstanceBuilderElement : ConfigurationElement
    {
        [ConfigurationProperty("fromInterface",IsRequired=true)]
        public string FromInterface
        {
            get
            {
                return this["fromInterface"] as string;
            }
            set
            {
                this["fromInterface"] = value;
            }
        }


        [ConfigurationProperty("toInstance", IsRequired = true)]
        public string ToInstance
        {
            get
            {
                return this["toInstance"] as string;
            }
            set
            {
                this["toInstance"] = value;
            }
        }


        [ConfigurationProperty("name", DefaultValue = "", IsRequired = true,IsKey=true)]
        public string Name
        {
            get
            {
                return this["name"] as string;
            }
            set
            {
                this["name"] = value;
            }
        }
    }
}
